package com.qidian.mes.wm.mapper;

import com.qidian.mes.wm.dto.WareDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 小可怎么都睡不够
 * @Description:
 * @Time: 2024-04-13 09:30
 **/

public interface WareMapper {
    //添加
    void addWare(WareDTO wareDTO);

    //修改
    void updateWare(WareDTO wareDTO);

    //删除
    void deleteWare(@Param("wareId") Integer wareId, @Param("status") Integer status);

    //批量删除
    void deleteWareByIds(@Param("ids") Integer[] ids);

    //根据仓库名称查询
    List<WareDTO> getWareByName(@Param("name") String name, @Param("offset")Integer offset, @Param("size") Integer size);

    Integer getCount(@Param("wareName")String wareName);
}
